import request from '@/utils/request'

// 查询医师开药检测列表
export function  getDoctorPrescribeListAPI(query) {
  return request({
    url: '/medical/abnormalPrescription/list',
    method: 'post',
    data: query
  })
}
// 查看异常详情
export function  getPrescribeDetailAPI(query) {
  return request({
    url: '/medical/prescriptionDetail/list',
    method: 'post',
    data: query
  }) 
}
// 整改审核通过
export function  setCorrectionPassAPI(query) {
  return request({
    url: '/medical/correction/correctionInfoPass',
    method: 'post',
    data: query
  })
}
// 整改审核驳回
export function  setCorrectionRejectAPI(query) {
  return request({
    url: '/medical/correction/correctionInfoReject',
    method: 'post',
    data: query
  }) 
}
/** 查看整改意见书 */
export function  getCorrectionInfoAPI(query) {
  return request({
    url: '/medical/correction/getCorrectionInfoByErrorId',
    method: 'get',
    params: query
  }) 
}